package com.xx.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

public class Student implements Serializable {
    @Serial
    private static final long serialVersionUID = 130564154053921741L;

    private int studentId;
    private String name;
    private int age;
    private String idNo;
    private String sex;

    public List<Course> courseList;

    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Course> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<Course> courseList) {
        this.courseList = courseList;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId=" + studentId +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", idNo='" + idNo + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }
}
